import React, { Component } from 'react'

export default class App extends Component {
    state = {
        list: ["1111", "2222", "3333"]
    }
    render() {
        // var newList = this.state.list.map(item => <li>{item}</li>)
        return (
            <div>
                <ul>
                    {/* {
                        newList
                    } */}
                    {
                        this.state.list.map(
                            (item, index) => <li key={index}>{item}</li>
                        )
                    }
                </ul>
            </div>
        )
    }
}
